package com.oschat.controller;

import java.util.List;

import com.oschat.entity.dto.TokenUserInfoDto;
import com.oschat.entity.query.GroupInfoQuery;
import com.oschat.entity.po.GroupInfo;
import com.oschat.entity.vo.ResponseVO;
import com.oschat.service.GroupInfoService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Controller
 */
@RestController("groupInfoController")
@RequestMapping("/groupInfo")
public class GroupInfoController extends ABaseController {

    @Resource
    private GroupInfoService groupInfoService;


    @RequestMapping("/saveGroup")
    public ResponseVO saveGroup(HttpServletRequest request,
                                String groupId,
                                @NotEmpty String groupName,
                                String groupNotice,
                                @NotNull Integer joinType,
                                MultipartFile avatarFile,
                                MultipartFile avatarCover) {

        TokenUserInfoDto tokenUserInfoDto = getTokenUserInfo(request);

        return null;
    }
}